package wenjun.du.androidart.view

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_view.*
import wenjun.du.androidart.R

/**
 * 1.ViewBaseActivity View相关的基础知识
 *
 *
 * */

class ViewActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_view)
        base.setOnClickListener {
            val intent = Intent(this, ViewBaseActivity::class.java)
            startActivity(intent)
        }
        viewAnimator.setOnClickListener {
            val intent = Intent(this, ViewAnimatorActivity::class.java)
            startActivity(intent)
        }

        outViewTouch.setOnClickListener {
            val intent = Intent(this, OutViewTouchActivity::class.java)
            startActivity(intent)
        }

        inViewTouch.setOnClickListener {
            val intent = Intent(this, InViewTouchActivity::class.java)
            startActivity(intent)
        }
    }
}